// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ImportCostSchemeDetailId',
                editTable:true ,
        footer: "Foots",
        cnName: '费用导入方案明细',
        name: 'ImportCostSchemeDetail',
        newTabEdit: false,
        url: "/ImportCostSchemeDetail/",
        sortName: "ImportCostSchemeDetailId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"AccountSubjectNo":"","AccountSubjectName":"","IsDepartment":"","AssistItemId":"","ExpenseItemRangeId":"","ExpenseItemRange":"","SubjectDirectionId":"","DepartmentId":[],"ExpenseItemId":"","ExpenseItemName":""};
    const editFormOptions = [[{"title":"总账科目","required":true,"field":"AccountSubjectNo"},
                               {"title":"科目名称","required":true,"field":"AccountSubjectName","type":"text"},
                               {"dataKey":"是否","data":[],"title":"科目是否核算部门","field":"IsDepartment","disabled":true,"type":"select"},
                               {"dataKey":"核算项目类型","data":[],"title":"核算项目类型","field":"AssistItemId","type":"select"},
                               {"title":"费用项目标识","field":"ExpenseItemRangeId","type":"text"},
                               {"title":"费用项目范围","field":"ExpenseItemRange","type":"text"},
                               {"dataKey":"借贷方向","data":[],"title":"科目方向","required":true,"field":"SubjectDirectionId","type":"select"},
                               {"dataKey":"部门级联","data":[],"title":"成本部门","required":true,"field":"DepartmentId","type":"cascader"},
                               {"title":"费用项目","field":"ExpenseItemId","type":"text"},
                               {"title":"费用项目名称","field":"ExpenseItemName","type":"text"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ImportCostSchemeDetailId',title:'费用导入方案明细标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ImportCostSchemeId',title:'费用导入方案标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'AccountSubjectNo',title:'总账科目',type:'string',width:110,edit:{type:''},require:true,align:'left'},
                       {field:'AccountSubjectName',title:'科目名称',type:'string',width:110,edit:{type:'text'},require:true,align:'left'},
                       {field:'IsDepartment',title:'科目是否核算部门',type:'int',bind:{ key:'是否',data:[]},width:80,readonly:true,edit:{type:'select'},align:'left'},
                       {field:'AssistItemId',title:'核算项目类型',type:'string',bind:{ key:'核算项目类型',data:[]},width:110,edit:{type:'select'},align:'left'},
                       {field:'ExpenseItemRangeId',title:'费用项目标识',type:'string',width:150,hidden:true,edit:{type:'text'},align:'left'},
                       {field:'ExpenseItemRange',title:'费用项目范围',type:'string',width:150,edit:{type:'text'},align:'left'},
                       {field:'SubjectDirectionId',title:'科目方向',type:'int',bind:{ key:'借贷方向',data:[]},width:110,edit:{type:'select'},require:true,align:'left'},
                       {field:'DepartmentId',title:'成本部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,edit:{type:'cascader'},require:true,align:'left'},
                       {field:'ExpenseItemId',title:'费用项目',type:'int',width:110,edit:{type:'text'},align:'left'},
                       {field:'ExpenseItemName',title:'费用项目名称',type:'string',width:120,edit:{type:'text'},align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}